import 'package:fish_redux/fish_redux.dart';

enum WebViewComponentAction { onWebViewCreate , onBack , onHandleUrl , onPageFinish , onRequestUrl , onRefresh}

class WebViewComponentActionCreator {
  static Action onWebViewCreate(webviewCtr) {
    return Action(WebViewComponentAction.onWebViewCreate,payload: webviewCtr);
  }

  static Action onBack() {
    return const Action(WebViewComponentAction.onBack);
  }

  static Action onHandleUrl(url) {
    return Action(WebViewComponentAction.onHandleUrl,payload: url);
  }
  static Action onPageFinish() {
    return const Action(WebViewComponentAction.onPageFinish);
  }
  static Action onRequestUrl() {
    return const Action(WebViewComponentAction.onRequestUrl);
  }
  static Action onRefresh() {
    return const Action(WebViewComponentAction.onRefresh);
  }
}
